package com.ruoyi.weiriya.domain.enums;

public enum GoodsTypeEnum {

    /**
     * 充电月卡
     */
    MONTH_CHARGE("MONTH_CHARGE","充电月卡"),
    /**
     * 充电季卡
     */
    QUARTER_CHARGE("QUARTER_CHARGE","充电季卡"),
    /**
     * 充电年卡
     */
    YEAR_CHARGE("YEAR_CHARGE","充电年卡"),
    /**
     * 停车月卡
     */
    MONTH_DEPOSIT("MONTH_DEPOSIT","停车月卡"),
    /**
     * 停车季卡
     */
    QUARTER_DEPOSIT("QUARTER_DEPOSIT","停车季卡"),
    /**
     * 停车年卡
     */
    YEAR_DEPOSIT("YEAR_DEPOSIT","停车年卡"),
    /**
     * 余额充值
     */
    WALLET_RECHARGE("WALLET_RECHARGE","余额充值");

    private final String goodsTypeName;
    private final String description;

    GoodsTypeEnum(String goodsTypeName, String value){
        this.goodsTypeName = goodsTypeName;
        this.description = value;
    }
    public String getDescription(){
        return this.description;
    }
    public String getGoodsTypeName(){
        return this.goodsTypeName;
    }
    public static String getEnumValue(String goodsTypeName){
        for (GoodsTypeEnum value : GoodsTypeEnum.values()) {
            if (value.goodsTypeName.equals(goodsTypeName)) {
                return value.getDescription();
            }
        }
        return null;
    }
}

